<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@ page language="java" contentType="text/html; charset=utf-8"%>
    <%@page import="cn.school.service.*,cn.school.entity.*,java.util.*" %>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>年级信息</title>
</head>
<body>
<table border="1" cellpadding="0" cellspacing="0">
    <tr>
        <td>编号</td><td>年级名</td>
    </tr>
    <%!
        private GradeService service;
    %><%
        GradeService service=new GradeService();
        List<Grade> list= service.findAll();
        for(Grade s:list){
    %>
    <tr>
        <td><%=s.getId() %></td><td><%=s.getGname() %></td>
    </tr>
    <%} %>
</table>

</body>
</html>